cmake_minimum_required(VERSION 3.10)
project(PolygonDetector)

# 查找 OpenCV 包
find_package(OpenCV REQUIRED)

# 添加可执行文件
add_executable(polygon_detector polygon_detector.cpp)

# 链接 OpenCV 库
target_link_libraries(polygon_detector ${OpenCV_LIBS})

# 设置输出路径（可选）
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
